import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import mUtils from './common/utils.js'
import JsEncrypt from './common/jsencrypt.js'
import * as filters from './filters/index.js'
import './uni.promisify.adaptor'
import shareMixin from '@/common/share.js'
Vue.mixin(shareMixin)
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})
Vue.prototype.$jsEncrypt = JsEncrypt
Vue.config.productionTip = false
Vue.use(uView)
Vue.mixin(mUtils)
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif